package 数组.练习;

public class 练习4 {

    // 定义一个方法===>遍历int数组中值
    public static void main(String[] args) {
        String arr[]={"张飞","赵云","马超","诸葛亮","孙尚香"};
        m1(arr);//arr   arr[]
    }

    //
    public static void  m1(String arr1[]){
        //遍历数组arr1
        for (int i = 0; i < arr1.length; i++) {
            System.out.println(arr1[i]);
        }
    }

}
